Skip to content

Add blackbody PBR node implementations#1367

Merged
jstone-lucasfilm merged 7 commits intoAcademySoftwareFoundation:mainfrom
autodesk-forks:pbr_blackbody
Jul 12, 2023
Merged

Add blackbody PBR node implementations#1367
jstone-lucasfilm merged 7 commits intoAcademySoftwareFoundation:mainfrom
autodesk-forks:pbr_blackbody

Conversation

@nicolassavva-autodesk
Copy link
Copy Markdown
Contributor

Address the missing targets for the PBR blackbody node implementation ( #1356 )
using the following approximation: Wikipedia: Planckian Locus Approximation
Add a simple Standard Surface material example using the above blackbody node for emission.
Reenable blackbody node tests.

Fix blackbody node MaterialXGen tests.
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 25, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@jstone-lucasfilm
Copy link
Copy Markdown
Member

This looks really promising, thanks @nicolassavva-autodesk. Let us know if you run into any issues with the Autodesk CLA, and the Linux Foundation is usually very responsive if you file a support ticket using the link above.

@nicolassavva-autodesk
Copy link
Copy Markdown
Contributor Author

Thanks Jonathan
I just re-authorized the Autodesk CLA with the account in question

Comment thread libraries/pbrlib/genglsl/mx_blackbody.glsl Outdated
Comment thread libraries/pbrlib/genosl/mx_blackbody.osl Outdated
@niklasharrysson
Copy link
Copy Markdown
Contributor

Looks great @nicolassavva-autodesk , I just noted an issue with the clamps above.

@nicolassavva-autodesk
Copy link
Copy Markdown
Contributor Author

Good catch Niklas.
Added a quick fix for the missing clamping

Copy link
Copy Markdown
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks @nicolassavva-autodesk. My one recommendation would be to move the example material from the Standard Surface examples folder to the test suite, where it would be a better fit:
https://github.com/AcademySoftwareFoundation/MaterialX/tree/main/resources/Materials/TestSuite/pbrlib/bsdf

The example material could additionally be simplified to a simple nodegraph containing the blackbody node, rather than making it a Standard Surface material with pure emission.

@jstone-lucasfilm jstone-lucasfilm changed the title Add blackbody PBR node implementations (#1356) Add blackbody PBR node implementations Jun 11, 2023
Copy link
Copy Markdown
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thanks @nicolassavva-autodesk!

@jstone-lucasfilm jstone-lucasfilm merged commit 3e838e2 into AcademySoftwareFoundation:main Jul 12, 2023
@krohmerNV
Copy link
Copy Markdown
Contributor

is there an MDL implementation missing now?

@lgritz
Copy link
Copy Markdown
Contributor

lgritz commented Jul 19, 2023

I hope I'm not opening a can of worms on a topic that has long since been settled, but is this function merely trying to return the color corresponding to a blackbody temperature, normalized to some standard luminance? Or is it supposed to be returning the actual emittance of the blackbody (W/m^2 or whatever)?

Michaelredaa pushed a commit to Michaelredaa/MaterialX that referenced this pull request Oct 21, 2023
Address the missing targets for the PBR blackbody node implementation
using the following approximation: Wikipedia: Planckian Locus Approximation
Add a simple unlit surface material example using the above blackbody node for emission.
Reenable blackbody node tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants